package com.woniuxy.purchase.entity.pojo;

import cn.hutool.core.annotation.Alias;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 需求单/商品表中间表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DemandGoods {
    /** 主键 */
    private Integer id;
    /** 需求表主键 */
    private Integer did;
    /** 商品编号 */
    @TableField(value = "gnum")
    private String goodsNumber;
    /** 数量 */
    private Integer quantity;

    public DemandGoods(String goodsNumber, Integer quantity) {
        this.goodsNumber = goodsNumber;
        this.quantity = quantity;
    }

}
